const getDeviceImage = (deviceName: string) => {
    switch (deviceName) {
        case 'smart_lock_with_cat_eye':
        return require('../assets/deviceImages/smart_lock_with_cat_eye.jpg');
        case 'camera':
        return require('../assets/deviceImages/camera.jpg');
        case 'light':
        return require('../assets/deviceImages/light.jpg');
        case 'air_conditioner':
        return require('../assets/deviceImages/air_conditioner.png');
        case 'air_purifier':
        return require('../assets/deviceImages/air_purifier.png');
        case 'humidifier':
        return require('../assets/deviceImages/humidifier.jpg');
        case 'curtain':
        return require('../assets/deviceImages/curtain.jpg');
        case 'washing_machine':
        return require('../assets/deviceImages/washing_machine.jpg');
        case 'vacuum_robot':
        return require('../assets/deviceImages/vacuum_robot.jpg');
        case 'refrigerator':
        return require('../assets/deviceImages/refrigerator.jpg');
        case 'dishwasher':
        return require('../assets/deviceImages/dishwasher.jpg');
        case 'water_heater':
        return require('../assets/deviceImages/water_heater.jpg');
        case 'exhaust_fan':
        return require('../assets/deviceImages/exhaust_fan.jpg');
        case 'smart_tv':
        return require('../assets/deviceImages/smart_tv.png');
        case 'smart_speaker':
        return require('../assets/deviceImages/smart_speaker.jpg');
        case 'temp_humidity_sensor':
        return require('../assets/deviceImages/temp_humidity_sensor.jpg');
        case 'motion_sensor':
        return require('../assets/deviceImages/motion_sensor.png');
        case 'smoke_co_alarm':
        return require('../assets/deviceImages/smoke_co_alarm.jpg');
        default:
        return require('../assets/deviceImages/camera.jpg'); // 默认图片
    }
};

export default getDeviceImage;